package com.product.system.controller;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.product.system.domain.ArgpTradesmanDriver;
import com.product.system.service.ArgpTradesmanDriverService;
import com.product.system.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ArgpTradesmanDriverController {

    @Autowired
    private ArgpTradesmanDriverService argpTradesmanDriverService;

    @RequestMapping("/listDiriver")
    public Result listDiriver(){
        List<ArgpTradesmanDriver> list =  argpTradesmanDriverService.listDiriver();
        return Result.success(list);
    }
}
